
package za.ac.cput.peterjohn.DesignPatternPrincipals.Behavioral.Mediator.Factory;

import za.ac.cput.peterjohn.DesignPatternPrincipals.Behavioral.Mediator.Model.*;


public class MediaFactory 
{

    public static Buyer createSwedishBuyer(Mediator mediator) 
    {
        Buyer buy = new SwedishBuyer(mediator);
        return buy;
    }

    public static Buyer createFrenchBuyer(Mediator mediator) 
    {
        Buyer buy = new FrenchBuyer(mediator);
        return buy;
    }

    public static AmericanSeller createAmericanSeller(Mediator mediator, float sellingPrice) 
    {
        AmericanSeller am = new AmericanSeller(mediator, sellingPrice);
        return am;
    }

    public static DollarConverter createConverter(Mediator mediator)
    {
        DollarConverter dollar = new DollarConverter(mediator);
        return dollar;
    }
    
}
